class AddDeskActionTimestamps < ActiveRecord::Migration
  def self.up
    add_column :freshman_jaunts, :leave_recorded_at, :datetime, :null => false
    add_column :freshman_jaunts, :return_recorded_at, :datetime, :null => true
    add_column :house_visits, :enter_recorded_at, :datetime, :null => false
    add_column :house_visits, :exit_recorded_at, :datetime, :null => true
    add_column :overnights, :overnight_recorded_at, :datetime, :null => false
    add_column :overnights, :wakeup_recorded_at, :datetime, :null => true
  end

  def self.down
    remove_column :freshman_jaunts, :leave_recorded_at
    remove_column :freshman_jaunts, :return_recorded_at
    remove_column :house_visits, :enter_recorded_at
    remove_column :house_visits, :exit_recorded_at
    remove_column :overnights, :overnight_recorded_at
    remove_column :overnights, :wakeup_recorded_at
  end
end
